
<?php $this->pageTitle = ' - Registration'?>

<?php $this->breadcrumbs = array(
   Yii::t('UserModule.base','Registration')
)?>
<h1><?php echo Yii::t('UserModule.base','Registration')?></h1>

<div class="form">
    <?php $form = $this->beginWidget('CActiveForm',array(
        'id'=>'registration-form',
        'action'=>array('/user/registration'),
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        )
    ))?>
    <div class="row">
            <?php echo $form->labelEx($model,'name'); ?>
            <?php echo $form->textField($model,'name'); ?>
            <?php echo $form->error($model,'name'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'login'); ?>
        <?php echo $form->textField($model,'login'); ?>
        <?php echo $form->error($model,'login'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'email'); ?>
        <?php echo $form->emailField($model,'email'); ?>
        <?php echo $form->error($model,'email'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password') ?>
        <?php echo $form->error($model,'password'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'password_repeat'); ?>
        <?php echo $form->passwordField($model,'password_repeat') ?>
        <?php echo $form->error($model,'password_repeat'); ?>
    </div>

    <?php if(CCaptcha::checkRequirements()): ?>
        <div class="row">
            <?php echo $form->labelEx($model,Yii::t('UserModule.base','Verify Code')); ?>
            <div>
                <?php $this->widget('CCaptcha'); ?> <br />
                <?php echo $form->textField($model,'verifyCode'); ?>
            </div>
            <div class="hint"><?php echo Yii::t('UserModule.base','Please enter the letters as they are shown in the image above.')?>
                <br/><?php echo Yii::t('UserModule.base','Letters are not case-sensitive.')?></div>
            <?php echo $form->error($model,'verifyCode'); ?>
        </div>
    <?php endif; ?>

    <div class="row buttons">
        <?php echo CHtml::submitButton(Yii::t('UserModule.base','Registration'))?>

    </div>
<?php $this->endWidget();?>
</div>